package com.vm.osm.business.service;

import com.vm.osm.business.dto.rsp.authRule.DispatchRule;
import com.vm.osm.business.dto.rsp.authRule.RspRulePage;
import com.vm.osm.business.entity.OsmDispatchRule;

import java.util.List;

/**
 * Created by chenzui on 2018/2/23.
 */
public interface IOsmDispatchRuleService extends IBaseService<OsmDispatchRule,String> {
    public List<DispatchRule> getDispatchesByCond(String type, String objId,String authMan,String authObjName,String enterpriseId);

    /**
     * 自动派单。产生员工、工单关联表
     * @param orderId
     */
    public void orderAutoDispatch(String orderId);

    /**
     * 分页查询
     * @param type
     * @param objId
     * @param authMan
     * @param authObjName
     * @param pageNum
     * @param pageSize
     * @return
     */
    public RspRulePage findPage(String enterpriseId,String type, String objId,String authMan,String authObjName,Integer pageNum,Integer pageSize);
}
